/**
 *  @Author MJreams
 *  @Time 2023/12/13 20:24:00
 *
**/
package options

import (
	"github.com/spf13/cobra"
)

type Options struct {
	Name string
	Age  string
}

var (
	Name string
	Age  string
)

func Pause(cmd *cobra.Command) {
	cmd.Flags().StringVarP(&Name, "name", "n", "weiwenxiang", "Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)")
	cmd.Flags().StringVarP(&Age, "age", "a", "12", "Name of the file to write the profile to")
}
func NewOptions() *Options {
	return &Options{
		Name: Name,
		Age:  Age,
	}
}
